Suppress cursor theme unsupported warning when there's no theme.
authorJohn Ralls <jralls@ceridwen.us>
Thu, 10 Oct 2013 22:35:41 +0000 (15:35 -0700)
committerJohn Ralls <jralls@ceridwen.us>
Thu, 10 Oct 2013 22:39:25 +0000 (15:39 -0700)
gtk/gtksettings.c

index a163f17efa4dd4599f3a473a76a63cdbbb07da1f..aabc1bb0125412e64b0d9b95fd260c78f1375875 100644 (file)
@@ -2697,7 +2697,8 @@ settings_update_cursor_theme (GtkSettings *settings)
                 "gtk-cursor-theme-name", &theme,
                 "gtk-cursor-theme-size", &size,
                 NULL);
-
+  if (theme == NULL)
+    return;
 #ifdef GDK_WINDOWING_X11
   if (GDK_IS_X11_DISPLAY (display))
     gdk_x11_display_set_cursor_theme (display, theme, size);